import request from '../utils/request'
export const getShop = () => {
    return request.get("/gen/shop/findAll",
        // {
        //     params:
        //         { limit:  data}
        // }
    )

}
export const getApply = () => {
    return request.get("/gen/apply",
        // {
        //     params:
        //         { limit:  data}
        // }
    )

}
export const shopApply = (data) => {
    return request.post("/gen/apply/shop",
        { data: `shopName=${data.shopName}&tel=${data.tel}&address=${data.address}&idCard=${data.idCard}&managerName=${data.managerName}&licenceNo=${data.licenceNo}&type=${data.type}&licenceImg=${data.licenceImg}&idCardImg=${data.idCardImg}` }
    )
}
export const shopTel = (tel) => {
    return request.get(`/gen/apply/shop/tel/${tel}`,)
}
export const shopName = (shopname) => {
    return request.get(`/gen/apply/shop/shopname/${shopname}`,

    )
}
export const shopStatus = (data) => {
    return request.put("/gen/apply/",
        { data: `id=${data.id}&shopName=${data.shopName}&tel=${data.tel}&address=${data.address}&idCard=${data.idCard}&managerName=${data.managerName}&licenceNo=${data.licenceNo}&status=${data.status}` }
    )
}
export const shopStop = (data) => {
    return request.put("/gen/shop", { data: `id=${data.id}&status=${data.status}` })
}